package com.atguigu.day13.teacher.in1;

import org.junit.Test;

public class InnerTest {
    @Test
    public void test03(){

        M m = new M();
        System.out.println("m = " + m);
       // M.N n = new M().new N();
        M.N n = m.new N();
     n.showName();
    }



    @Test
    public void test01(){

        Outer outer = new Outer();
        outer.outerMethod02();

    }

    @Test
    public void test02(){
     //todo 创建内部类对象 了解
        Outer outer = new Outer();

      //  Outer.Inner inner = outer.new Inner();
        Outer.Inner inner = new Outer().new Inner();
        System.out.println("inner.age = " + inner.age);
        inner.innerMethod();

        Outer.Inner.innerMethod02();
    }
}
